gdkwindow: Respect cairo surfaces with device scale
authorAlexander Larsson <alexl@redhat.com>
Tue, 4 Jun 2013 08:41:44 +0000 (10:41 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 3 Jul 2013 12:34:13 +0000 (14:34 +0200)
commit56bec0c70c1c507934a27b6c241b63360f53e731
treeece7006e9a6e2c23ca91eaa18fff05a8c7e0b805
parent1b1f2b4b52f9791a70533f9813b42b5aa3ff1ce2
gdkwindow: Respect cairo surfaces with device scale

If a cairo_surface for a window has a device scale set we need
to respect this when creating a similar window. I.e. we want
to then automatically create a larger window which inherits
the scale from the original.

We also need to calculate a different device_offset if there
is a device_scale set.
gdk/gdkwindow.c